package com.yaowk.sfp.eoms.api;

import com.yaowk.sfp.eoms.api.model.NotifyTarget;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("eoms")
@RequestMapping("/eoms/notifyTarget")
public interface NotifyTargetApi {

    @GetMapping
    List<NotifyTarget> list();

    @PostMapping
    NotifyTarget save(NotifyTarget notifyTarget);

    @DeleteMapping("/{id}")
    void delete(@PathVariable Long id);

}
